import { httpPost, httpPut, httpDelete, httpGet } from "@/utils/http"

// 新增医生
export const addDoctorsApi = (data?: object) => {
    return httpPost('/doctors/add', data)
}
// 查询医生
export const searchDoctorsApi = (data?: object) => {
    return httpPost('/doctors/search', data)
}
// 删除医生
export const deleteDoctorsApi = (data?: object) => {
    return httpDelete('/doctors/remove', data)
}
// 修改医生
export const updateDoctorsApi = (data?: object) => {
    return httpPut('/doctors/update', data)
}
// 获取医生详细
export const getDoctorsDetailApi = (data?: object) => {
    return httpGet('/doctors/detail', data)
}
// 查询角色
export const findRoleApi = (data?: object) => {
    return httpPost('/roles/search', data)
}
// 查询机构
export const findOrganizationsApi = (data?: object) => {
    return httpPost('/organizations/search', data)
}
// 查询团队
export const findTeamsApi = (data?: object) => {
    return httpPost('/teams/search', data)
}
// 查询服务项目
export const findServiceItemsApi = (data?: object) => {
    return httpPost('/serviceItems/search', data)
}
// 修改服务包
export const updateServicePacksApi = (data?: object) => {
    return httpPut('/servicePacks/update', data)
}
// 分页查询服务包
export const findServicePacksApi = (data?: object) => {
    return httpPost('/servicePacks/search', data)
}
// 新增服务包
export const addServicePacksApi = (data?: object) => {
    return httpPost('/servicePacks/add', data)
}
// 删除服务包
export const deleteServicePacksApi = (data?: object) => {
    return httpDelete('/servicePacks/remove', data)
}
// 获取一个服务包详情
export const getServicePacksDetailApi = (data?: object) => {
    return httpGet('/servicePacks/detail', data)
}
